﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;

namespace FazaDemo.PL.WebSite.Mvc
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {

            routes.MapHttpRoute(
              name: "Default_Api",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
              );

            routes.MapRoute(
                name: "DefaultWithId",
                url: "{controller}/{action}/{*pathInfo}",
                defaults: new { controller = "Shell", action = "Content" }
                    );


        }
    }
}
